<?php
namespace app\admin\validate;

use think\Validate;

class RoomPasswordValidate extends Validate
{
    protected $rule = [
        'room_id|房间' => 'require',
        'password|密码' => 'require|max:18|min:6',
        'start_time|起始时间' => 'require|date',
        'end_time|结束时间' => 'require|date'
    ];

    protected $scene = [
        'addRoomPassword' => ['room_id' , 'password' , 'start_time' , 'end_time'],
    ];
}